/**
 *  机构变更套件
 */
const organizationChildren = [
    {
        tag: 'Title',
        key: 'changeReasonTitle',
        formId: 'changeReasonTitle',
        options: {},
        titleValue: '变更理由',
        rules: [],
        noValue: true,
        inFormAuth: false
    },
    {
        label: '变更理由',
        formId: 'changeReason',
        key: 'changeReason',
        tag: 'TextArea',
        rules: [
            {
                required: true,
                message: '请输入'
            }
        ],
        options: {
            disabled: true,
            maxLength: 500
        }
    },
    {
        tag: 'Title',
        key: 'changContentTitle',
        formId: 'changContentTitle',
        options: {},
        titleValue: '变更内容',
        rules: [],
        noValue: true
    },
    {
        label: '机构名称',
        formId: 'organizationName',
        tag: 'Input',
        rules: [],
        options: {
            disabled: true
        },
        isSummary: true,
        inFormAuth: false,
        inRenderDom: false
    },
    {
        label: '机构类型',
        formId: 'organizationType',
        tag: 'Input',
        rules: [],
        options: {
            disabled: true
        },
        isSummary: true,
        inFormAuth: false,
        inRenderDom: false
    },
    {
        label: '操作类型',
        formId: 'operationType',
        tag: 'Input',
        rules: [],
        options: {
            disabled: true
        },
        isSummary: true,
        inFormAuth: false,
        inRenderDom: false
    },
    {
        label: '申请成功跳转',
        formId: 'applySuccessUrl',
        tag: 'Input',
        rules: [],
        options: {
            initialValue: '/office/personnelManagement/organization/orgflow',
            disabled: true
        },
        inFormAuth: false,
        inRenderDom: false
    }
];

export const organizationControl = {
    label: '机构变更',
    cmpType: 'custom',
    formId: '',
    key: 'Organization',
    tag: 'Organization',
    // tagIcon: '',
    formStyle: true,
    children: organizationChildren
};
